package com.qfedu.service.impl;

import com.qfedu.dao.TQuestionDao;
import com.qfedu.entity.TQuestion;
import com.qfedu.service.TQuestionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TQuestionServiceImpl implements TQuestionService {

    @Autowired
    private TQuestionDao tQuestionDao;

    /**
     * 添加笔记
     * @param
     * @return
     */
    @Override
    public int addQuestionNote(TQuestion tQuestion) {

        return tQuestionDao.addQuestionNote(tQuestion);
    }

    /**
     * 添加代码
     * @param
     * @param
     * @return
     */
    @Override
    public int addQuestionCode(TQuestion tQuestion) {
        return tQuestionDao.addQuestionCode(tQuestion);
    }

    /**
     * 新增资源
     * @param tQuestion
     * @return
     */
    @Override
    public int addQuestion(TQuestion tQuestion) {
        return tQuestionDao.addQuestion(tQuestion);
    }

    /**
     * 资源库
     * @return
     */
    @Override
    public List<TQuestion> getAllQuestion() {
        return tQuestionDao.getAllQuestion();
    }
}
